<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>

    // 接收一个参数  返回对应的Promise实例(对象)
    // Promise.resolve();
    // Promise.reject();

    // var p = Promise.resolve(1);
    var p = Promise.reject(1);
    console.log(p);


</script>

</html>